#ifndef GROUP_H
#define GROUP_H
#include "groupuser.hpp"
#include <string>
#include <vector>
using namespace std;
class Group
{
public:
    Group()
    {
    }
    Group(int id, string name = "", string desc = "")
    {
        this->id = id;
        this->name = name;
        this->desc = desc;
    }

    void setId(int id)
    {
        this->id = id;
    }

    void setName(string name)
    {
        this->name = name;
    }

    void setDesc(string desc)
    {
        this->desc = desc;
    }

    int getId()
    {
        return this->id;
    }
    string getName()
    {
        return this->name;
    }
    string getDesc()
    {
        return this->desc;
    }

    // 这个为啥用引用返回
    vector<GroupUser> &getUsers()
    {
        return this->users;
    }

public:
    int id;
    string name;
    string desc;
    // 当前这个组有好多成员
    vector<GroupUser> users;
};

#endif